<template>
  <view>
    <image src="../../image/empty9.png" class="emptyImg" />
    <view class="text-p1">支付完成!</view>
    <view class="btn" @tap="goBack">确定</view>
  </view>
</template>
<script>
import Taro from "@tarojs/taro";
import "./paySuccess.less";
import bulterApi from "@souche2014/bulter-api";
const api = bulterApi({ partner: "IOParking" });
export default {
  data() {
    return {
      isHome:null
    };
  },
  onLoad: function(options) {
   this.isHome=options.isHome?options.isHome:null
  },
  methods: {
    goBack() {
      if(this.isHome==1){
        api.openPage("home");
      }else{
      Taro.redirectTo({
        url: "../cardManage/card"
      });
      }
    },
  }
};
</script>

